/*
 * 
 */
package kds.network.http.reponse;

import kds.network.HTTPRequest;
import kds.network.http.HTTPResponseData;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;


/**
 * The Class HTTPBitmapResponse.
 */
public class HTTPBitmapResponse extends HTTPResponse {

	/** The bitmap. */
	public Bitmap bitmap = null;

	@Override
	public void processResponse(HTTPResponseData data, HTTPRequest request)throws Exception {
		byte[] bytes = data.getBytes();
		this.bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
	}

}
